﻿using System;

namespace _2022._4._5
{
    class Program
    {
        static void Main(string[] args)
        {
            Student a1 = new Student();
            a1.stuMessage("张三", 30, "男");
            a1.SayHello();
            Math a2 = new Math();
            Console.Write("请输入第一个数:");
            int a = Convert.ToInt32(Console.ReadLine());
            Console.Write("请输入第二个数:");
            int b = Convert.ToInt32(Console.ReadLine());
            Console.Write("请输入第三个数:");
            int c = Convert.ToInt32(Console.ReadLine());
            Math.Add(a ,b);
            Math.Add(a ,b ,c);
            Employee a3 = new Employee();
            a3.ComputeSalary();
            Console.Write("员工津贴数为:");
            int allowance = Convert.ToInt32(Console.ReadLine());
            a3.ComputeSalary(allowance);
            Console.Write("是否为经理:");
            string jl = Convert.ToString(Console.ReadLine());
            if (jl == "是")
            {
                Console.Write("奖金为:");
                int bonus = Convert.ToInt32(Console.ReadLine());
                a3.ComputeSalary(bonus);
            }
            else 
            { int bonus = 0;
                a3.ComputeSalary(bonus);
            }
        }
    }
}
